home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 98
/
Skunkware 98.iso
/
src
/
mail
/
pine3.96.tar.gz
/
pine3.96.tar
/
pine3.96
/
pico
/
makefile.os2
< prev
next >
Wrap
Makefile
|
1996-04-05
|
3KB
|
129 lines
# $Id: makefile.os2,v 4.3 1996/04/05 18:06:44 mikes Exp $
#
# Michael Seibel
# Networks and Distributed Computing
# Computing and Communications
# University of Washington
# Administration Builiding, AG-44
# Seattle, Washington, 98195, USA
# Internet: mikes@cac.washington.edu
#
# Please address all bugs and comments to "pine-bugs@cac.washington.edu"
#
#
# Pine and Pico are registered trademarks of the University of Washington.
# No commercial use of these trademarks may be made without prior written
# permission of the University of Washington.
#
# Pine, Pico, and Pilot software and its included text are Copyright
# 1989-1996 by the University of Washington.
#
# The full text of our legal notices is contained in the file called
# CPYRIGHT, included with this distribution.
#
#
# Makefile for Linux of the PINE composer library and
# stand-alone editor pico.
#
# Common macros
CC= gcc
CP= cp
MAKE= make
MV= mv
RM= rm -f
OS= os2
# emx OMF format build
# Used to build .dlls with data exports
DEBUG=
ZOMF= -Zomf
O= .obj
A= .lib
E= .exe
D= .dll
AR= emxomfar r
ZLIB= -Zcrtdll
ZOPT= -O3 -fno-strength-reduce -mprobe
ZDEF= -DOS2 -DOMF
.SUFFIXES: .c .obj .exe
# emx AOUT format build
# Useful for debugging with gdb
#DEBUG= -g
#ZOMF=
#O= .o
#A= .a
#D= .dll
#E= .exe
#AR= ar rus
#ZLIB= -Zcrtdll
#ZOPT= -O3 -fno-strength-reduce -mprobe
#ZDEF= -DOS2
#.SUFFIXES: .c .o .exe
.c$O: ; $(CC) $(ZOMF) $(CFLAGS) -c $<
#includes symbol for debugging
#for normal build
MOUSE= -DMOUSE
DASHO= $(ZOPT) $(DEBUG)
CFLAGS= $(ZDEF) -Dbsd -DFASTVIO -DHELPFILE -DJOB_CONTROL -DANSI $(MOUSE) $(DASHO)
LDFLAGS= $(ZOMF) $(ZLIB) $(DEBUG)
ARCHIVE= picolib$A
# switches for library building
LIBS=
OFILES= attach$O ansi$O basic$O bind$O browse$O \
buffer$O composer$O display$O file$O fileio$O \
ibmpc$O line$O osdep$O pico$O random$O region$O \
search$O os2spell$O window$O word$O
CFILES= attach.c ansi.c basic.c bind.c browse.c buffer.c \
composer.c display.c file.c fileio.c ibmpc.c line.c osdep.c \
pico.c random.c region.c search.c os2spell.c \
window.c word.c
HFILES= estruct.h edef.h efunc.h ebind.h pico.h
#
# dependencies for the Unix versions of pico and pico.lib
#
all: blddate$E pico$E pilot$E
osdep.c: os_os2.c
rm -f osdep.c
cp os_os2.c osdep.c
osdep.h: os_os2.h
rm -f osdep.h
cp os_os2.h osdep.h
$(ARCHIVE): $(OFILES) picolib.def
$(CC) -Zdll -o picolib$D $(OFILES) picolib.def $(LDFLAGS)
emximp -o picolib$A picolib.def
pico$E: main.c $(ARCHIVE)
$(CC) $(CFLAGS) main.c -L. -lpicolib $(LIBS) -o pico$E $(LDFLAGS)
pilot$E: pilot.c $(ARCHIVE) osdep.h
$(CC) $(CFLAGS) pilot.c -L. -lpicolib $(LIBS) -o pilot$E $(LDFLAGS)
blddate$E: blddate.c
$(CC) $(CFLAGS) blddate.c -o blddate$E $(LDFLAGS) -lsocket
$(OFILES): osdep.h $(HFILES)
clean:
rm -f *$E *$A *$D *$O *~ *.bak osdep.c osdep.h pico pilot